package factory;

public class CarFactory {
	public Car getCar(String model) {
		if (model.equals("ferrari")) {
			return new FerrariCar();
		} else if (model.equals("renault")) {
			return new RenaultCar();
		} else {
			return new PeugeotCar();
		}
	}

}
